import * as constants from '../constants';

export interface interAlert {
    type: string;
    msg?: string;
}

export type MSGAction =interAlert;

export function showAlert(msg: string): interAlert{
    return {
        type: constants.SHOW_ALERT,
        msg: msg
    };
}

export function closeAlert(): interAlert{
    return {
        type: constants.CLOSE_ALERT
    }
}
